//
// CParticleSystemProcess.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;
import org.ryzom.nel.misc.IStreamable;

public class CParticleSystemProcess extends IStreamable {
  private long swigCPtr;

  public CParticleSystemProcess(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CParticleSystemProcess_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CParticleSystemProcess obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CParticleSystemProcess(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void serial(IStream f) {
    nel3dJNI.CParticleSystemProcess_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public void step(TPSProcessPass pass) {
    nel3dJNI.CParticleSystemProcess_step(swigCPtr, this, pass.swigValue());
  }

  public boolean computeBBox(SWIGTYPE_p_NLMISC__CAABBox aabbox) {
    return nel3dJNI.CParticleSystemProcess_computeBBox(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(aabbox));
  }

  public void setOwner(CParticleSystem ps) {
    nel3dJNI.CParticleSystemProcess_setOwner(swigCPtr, this, CParticleSystem.getCPtr(ps), ps);
  }

  public CParticleSystem getOwner() {
    long cPtr = nel3dJNI.CParticleSystemProcess_getOwner__SWIG_0(swigCPtr, this);
    return (cPtr == 0) ? null : new CParticleSystem(cPtr, false);
  }

  public void releaseRefTo(CParticleSystemProcess other) {
    nel3dJNI.CParticleSystemProcess_releaseRefTo(swigCPtr, this, CParticleSystemProcess.getCPtr(other), other);
  }

  public void releaseAllRef() {
    nel3dJNI.CParticleSystemProcess_releaseAllRef(swigCPtr, this);
  }

  public CFontGenerator getFontGenerator() {
    long cPtr = nel3dJNI.CParticleSystemProcess_getFontGenerator__SWIG_0(swigCPtr, this);
    return (cPtr == 0) ? null : new CFontGenerator(cPtr, false);
  }

  public CFontManager getFontManager() {
    long cPtr = nel3dJNI.CParticleSystemProcess_getFontManager__SWIG_0(swigCPtr, this);
    return (cPtr == 0) ? null : new CFontManager(cPtr, false);
  }

  public TPSMatrixMode getMatrixMode() {
    return TPSMatrixMode.swigToEnum(nel3dJNI.CParticleSystemProcess_getMatrixMode(swigCPtr, this));
  }

  public void setMatrixMode(TPSMatrixMode matrixMode) {
    nel3dJNI.CParticleSystemProcess_setMatrixMode(swigCPtr, this, matrixMode.swigValue());
  }

  public boolean hasParticles() {
    return nel3dJNI.CParticleSystemProcess_hasParticles(swigCPtr, this);
  }

  public boolean hasEmitters() {
    return nel3dJNI.CParticleSystemProcess_hasEmitters(swigCPtr, this);
  }

  public long getNumWantedTris() {
    return nel3dJNI.CParticleSystemProcess_getNumWantedTris(swigCPtr, this);
  }

  public boolean isParametricMotionEnabled() {
    return nel3dJNI.CParticleSystemProcess_isParametricMotionEnabled(swigCPtr, this);
  }

  public void performParametricMotion(float arg0) {
    nel3dJNI.CParticleSystemProcess_performParametricMotion(swigCPtr, this, arg0);
  }

  public void systemDateChanged() {
    nel3dJNI.CParticleSystemProcess_systemDateChanged(swigCPtr, this);
  }

  public boolean isLocated() {
    return nel3dJNI.CParticleSystemProcess_isLocated(swigCPtr, this);
  }

  public long getUserMatrixUsageCount() {
    return nel3dJNI.CParticleSystemProcess_getUserMatrixUsageCount(swigCPtr, this);
  }

  public void enumTexs(SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t dest, IDriver drv) {
    nel3dJNI.CParticleSystemProcess_enumTexs(swigCPtr, this, SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t.getCPtr(dest), IDriver.getCPtr(drv), drv);
  }

  public void setZBias(float value) {
    nel3dJNI.CParticleSystemProcess_setZBias(swigCPtr, this, value);
  }

  public long getIndex() {
    return nel3dJNI.CParticleSystemProcess_getIndex(swigCPtr, this);
  }

  public void onShow(boolean shown) {
    nel3dJNI.CParticleSystemProcess_onShow(swigCPtr, this, shown);
  }

  public void setIndex(long index) {
    nel3dJNI.CParticleSystemProcess_setIndex(swigCPtr, this, index);
  }

}
